Hi guys, do you know if is possible to redirect fo...
# support-questions-legacy
d
Hi guys, do you know if is possible to redirect for a specific url just after sing up?
r
hey @d35k it is possible. You need to provide the
getRedirectionURL
function in your recipe init on the frontend
d
yes, but how i know is singup or sing in?
I just redirect only in signup
r
the
context
has info about it
print out the value of
context
variable
d
mmm I see, If I use /auth directory is works, but I'm using form in modal, with
r
What’s the behaviour in that case?
d
nothing, they don't pass for this config
r
Does the getRedirectionUrl function get called?
d
no
r
Can I see how you have embedded the component?
d

https://cdn.discordapp.com/attachments/1103235654407696394/1103256519455281254/Screenshot_2023-05-03_at_17.46.59.png

https://cdn.discordapp.com/attachments/1103235654407696394/1103256519786639441/Screenshot_2023-05-03_at_17.47.26.png

r
Can I see the code around where you are rendering this component?
d
Copy code
<Dialog
        dismissable
        headerless
        padding={false}
        onClose={dialog.close}
        open={dialog.isOpen}
        title=''
        dialogClassName={styles.dialogClassName}
      >
        <div
          className={clsx(styles.iframe, {
            [styles.hideIframe]: formResetPassword,
          })}
        >
          <SignInAndUp />
          <div
            className={styles.reset}
            onClick={() => setFormResetPassword(!formResetPassword)}
          >
            Forgot password?
          </div>
        </div>
        <div
          className={clsx(styles.iframe, {
            [styles.hideIframe]: !formResetPassword,
          })}
        >
          <ResetPasswordUsingToken />
          <div
            className={styles.reset}
            onClick={() => setFormResetPassword(!formResetPassword)}
          >
            Return to Login
          </div>
        </div>
      </Dialog>
is just dialog
another error, in form in /auth, navigate between inputs with "tab keyboard" button works fine, but with no
p
that's very strange, since they should be rendering the same exact component :/
1 sec, I'll check this out
d
ok thanks
p
maybe a dumb question, but are you using the same recipe?
also, the sign-in is successfull right? you just get redirected to "/"?
d
What do you mean exactly?
p
if you are using thirdpartyemailpassword only
or not. (sometimes that happens)
d
yes, sign-in is sucessfull in both cases, but in case for , don't redirect, just close the modal and stay in the same path (thats is corrects, is how I wan't work)
yes
this is for frontendconfig.tsx

https://cdn.discordapp.com/attachments/1103235654407696394/1103261629140979772/Screenshot_2023-05-03_at_18.07.32.png

p
> thats is corrects, is how I wan't work so it works how you want it to work but the
getRedirectionURL
callback doesn't get called?
d
exactly, when I sing-UP in modal with , It's like it doesn't go through getRedirectionURL

https://cdn.discordapp.com/attachments/1103235654407696394/1103263165745205298/Screenshot_2023-05-03_at_18.13.48.png

are ignoring this
p
no errors on the console and just a successful sign in?
d
let my check

https://cdn.discordapp.com/attachments/1103235654407696394/1103265288549584989/Screenshot_2023-05-03_at_18.22.13.png

with /auth nothing, but with I received this error after login
i'll try one thing
ok, solved, is because I just dismount the component when I have sessionContext.doesSessionExist
thanks!
r
how did you solve it?
p
happy to help/that it was solved 🙂
d
what about this?
just removing to dismount component if I have sessionContext.doesSessionExist
r
i see. Okay!
p
About tabbing through things: I'm not aware of anything that could cause this and I'm not even sure how to debug this without a reproduction. Do you have something I could check out?
Also, if you click into email, then hit tab, does that change the focus?
d
also, I have custom style for forms, but email verification is not affected, is normal? I want change the email verification style

https://cdn.discordapp.com/attachments/1103235654407696394/1103267533773086790/Screenshot_2023-05-03_at_18.29.57.png

no, don't change
p
yeah, you can add styles to the email verification recipe as well.
d
not yet, because is not in production, is not a big mistake for us, i'll ping you when this are in production if you want
p
that'd be awesome.
thanks 🙂
d
ok thanks
welcome!